package com.code.AZPlan.model.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 收益业务对象
 *
 * @author tangyifei
 * @since 2020年1月4日15:38:04
 */
@ApiModel("收益业务对象")
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class IncomeBO implements Serializable{

    private static final long serialVersionUID = 5836343622033325628L;

    @ApiModelProperty(value = "主键", example = "1")
    private String id;

    @ApiModelProperty(value = "用户主键", example = "1")
    private String userId;

    @ApiModelProperty(value = "收益类型 1 本人静态收益  2动态收益中的推荐收益  3动态收益中的团队收益", example = "1")
    private Integer incomeType;

    @ApiModelProperty(value = "收益金额", example = "1000USD")
    private String incomeAmount;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date updateTime;

}
